<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/home">DRM-admin</a><a class="logo navbar-slogan f-l mr-10 hidden-xs" href="/version/update" style="color: #67d9e9">1.1</a>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<li><#if level??><#if level==0>超级管理员<#elseif level==1>管理员<#else>用户</#if></#if></li>
					<li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A">${nickName!''}<i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:userInfo();">个人信息</a></li>
                            <li><a href="/version/update">更新记录</a></li>
							<li><a href="/user/doLogout">退出</a></li>
						</ul>
					</li>
					<#--<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>-->
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>

<script type="text/javascript" charset="utf-8">
    function loginOut() {
        $.get('${base}/user/doLogout', function (result) {
			if (result.code == 0) {
                document.location.reload();
			}
        });
    }
    
    function userInfo() {
        var title = "个人信息";
        var url = "${base}/user/info";
        layer_show(title, url, 450, 380);
    }
</script>